package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/9 0009.
 */

public class CreatePlatformOrderRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "ptb/pay";

    private String currency;
    private String pay_id;

    public String getPay_id() {
        return pay_id;
    }

    public void setPay_id(String pay_id) {
        this.pay_id = pay_id;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public CreatePlatformOrderRequestParams(String payId, String currency) {
        this.currency = currency;
        this.pay_id = payId;
    }





    @Override
    public String getServiceString() {
        return SERVICE;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);

        dest.writeString(this.currency);
        dest.writeString(this.pay_id);
    }

    protected CreatePlatformOrderRequestParams(Parcel in) {
        super(in);

        this.currency =in.readString();
        this.pay_id = in.readString();
    }

    public static final Creator<CreatePlatformOrderRequestParams> CREATOR = new Creator<CreatePlatformOrderRequestParams>() {
        @Override
        public CreatePlatformOrderRequestParams createFromParcel(Parcel source) {
            return new CreatePlatformOrderRequestParams(source);
        }

        @Override
        public CreatePlatformOrderRequestParams[] newArray(int size) {
            return new CreatePlatformOrderRequestParams[size];
        }
    };
}
